#1、用列表的方式做出石头剪刀布的游戏并且输入中文
# import  random
# game = ['石头' , '剪刀' , '布']
# player = input("请玩家出拳：\n")
# computer = random.choice(game)
# if player not in game:
#     player = input("玩家输入有误，请重新出拳：\n")
# else:
#     print("玩家出的是：%s" % player)
#     print("电脑出的是：%s" % computer)
#     print('=============游戏结果==============')
#     if player == computer:
#         print("本局是平局！")
#     elif (player == '剪刀' and computer == '布') or (player == '石头' and computer == '剪刀') or (
#                     player == '布' and computer == '石头'):
#         print("本局玩家获胜！")
#     else:
#         print("本局电脑获胜！")
#     print('===================================')
#     flag = input("是否继续游戏,输入n退出，其他继续游戏:")
#     if flag == "n":
#         print("游戏结束！")

#2、用任意编程语言循环输出整数0到10
# num = 0
# while num <= 10:
#     print(num)
#     num += 1

#3、用任意语言逆序输出一个字符串，比如北京欢迎您，输出【您迎欢京北】
# str1 = '北京欢迎您'
# str2 = str1[::-1]
# print(str2)

#4、str = 'a,hello' 在字符串中str中查找hello
# str1 = 'a,hello'
# str2 = str1.find('hello')
# print(str2)

#5、str = 'a,b,c,d' 用逗号分割str字符串，并保存为列表
# str1 = 'a,b,c,d'
# str2 = str1.split()
# print(str2)

#6、将'笔试题123A'中123替换为'进行中'
# str1 = '笔试题123A'
# str2 = str1.replace('123','进行中')
# print(str2)
